//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		shopInfo: {
			logo: "https://img.yzcdn.cn/vant/cat.jpeg",
			name: "澎湃私房菜",
			no: "01"
		}
	},
	onLoad: function() {
		this.getShopInfo();
	},
	getShopInfo() {
		console.log("获取店铺信息")
	},
	// 前往点餐页面
	gotoOrdering() {
		console.log("前往点餐页面")
		wx.switchTab({
			url: "/pages/ordering/index"
		})
	}
})
